package geektime.spring.autoconfiguredemo.autotest;


import geektime.spring.autoconfiguredemo.handler.UserDao;
import lombok.extern.slf4j.Slf4j;

import javax.annotation.Resource;

@Slf4j

public class TestServiceImp implements TestService {
    private TestDao testDao;
    //@Resource 报错有可能是jdk版本的问题 build path解决一下
    public void save() {
        this.testDao.save();
        log.info("TestService...save :{}","测试成功");
    }
    public void setTestDao(TestDao testDao) {
        this.testDao = testDao;
    }
}
